# 接训练代码,添加测试部分
print("-----转化为测试过程------")
bn.eval() #  切换为测试模式
img_eval=bn(img)
print("img_eval:")
print(img_eval)
print('running mean:',bn.running_mean,'running var:',bn.running_var)
gamma = bn.weight
beta =  bn.bias
print('gamma=', gamma)
print('beta=', beta) 
